-- GENERATED SPELL FOR [Scarlet Enchanter] --


function spell0_9452(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(25055,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9452', 1000, 1)
end

function spell1_9452(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(15970,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9452', 11000, 1)
end

function Sorts_9452(pUnit, Event)
local choix_sorts_9452 = math.random(0, 1)
if choix_sorts_9452 == 0 then
pUnit:RegisterEvent('spell0_9452', 1, 1)
end
if choix_sorts_9452 == 1 then
pUnit:RegisterEvent('spell1_9452', 1, 1)
end
end

function mob9452_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9452', math.random(1500, 3000), 1)
end

function mob9452_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9452_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9452_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9452, 1, 'mob9452_Action')
RegisterUnitEvent(9452, 2, 'mob9452_Leave')
RegisterUnitEvent(9452, 3, 'mob9452_Kill')
RegisterUnitEvent(9452, 4, 'mob9452_Die')
